.class Lcom/glympse/android/glympse/MapControl$DoubleTapGestureDetector;
.super Landroid/view/GestureDetector$SimpleOnGestureListener;
.source "MapControl.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/MapControl;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "DoubleTapGestureDetector"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/MapControl;


# direct methods
.method private constructor <init>(Lcom/glympse/android/glympse/MapControl;)V
    .locals 0
    .parameter

    .prologue
    .line 905
    iput-object p1, p0, Lcom/glympse/android/glympse/MapControl$DoubleTapGestureDetector;->this$0:Lcom/glympse/android/glympse/MapControl;

    invoke-direct {p0}, Landroid/view/GestureDetector$SimpleOnGestureListener;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/glympse/android/glympse/MapControl;Lcom/glympse/android/glympse/MapControl$DoubleTapGestureDetector;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 905
    invoke-direct {p0, p1}, Lcom/glympse/android/glympse/MapControl$DoubleTapGestureDetector;-><init>(Lcom/glympse/android/glympse/MapControl;)V

    return-void
.end method


# virtual methods
.method public onDoubleTap(Landroid/view/MotionEvent;)Z
    .locals 5
    .parameter "oMotionEvent"

    .prologue
    const/4 v4, 0x1

    .line 913
    :try_start_0
    sget-object v1, Lcom/glympse/android/glympse/MapControl$EViewMode;->MainMap:Lcom/glympse/android/glympse/MapControl$EViewMode;

    iget-object v2, p0, Lcom/glympse/android/glympse/MapControl$DoubleTapGestureDetector;->this$0:Lcom/glympse/android/glympse/MapControl;

    iget-object v2, v2, Lcom/glympse/android/glympse/MapControl;->m_eViewMode:Lcom/glympse/android/glympse/MapControl$EViewMode;

    if-eq v1, v2, :cond_0

    sget-object v1, Lcom/glympse/android/glympse/MapControl$EViewMode;->DestinationPicker:Lcom/glympse/android/glympse/MapControl$EViewMode;

    iget-object v2, p0, Lcom/glympse/android/glympse/MapControl$DoubleTapGestureDetector;->this$0:Lcom/glympse/android/glympse/MapControl;

    iget-object v2, v2, Lcom/glympse/android/glympse/MapControl;->m_eViewMode:Lcom/glympse/android/glympse/MapControl$EViewMode;

    if-ne v1, v2, :cond_1

    .line 916
    :cond_0
    iget-object v1, p0, Lcom/glympse/android/glympse/MapControl$DoubleTapGestureDetector;->this$0:Lcom/glympse/android/glympse/MapControl;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/glympse/android/glympse/MapControl;->SetPanning(Z)V

    .line 919
    iget-object v1, p0, Lcom/glympse/android/glympse/MapControl$DoubleTapGestureDetector;->this$0:Lcom/glympse/android/glympse/MapControl;

    iget-object v1, v1, Lcom/glympse/android/glympse/MapControl;->m_oMapController:Lcom/google/android/maps/MapController;

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    float-to-int v2, v2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    float-to-int v3, v3

    invoke-virtual {v1, v2, v3}, Lcom/google/android/maps/MapController;->zoomInFixing(II)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 928
    :cond_1
    :goto_0
    return v4

    .line 922
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 924
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/Throwable;)V

    goto :goto_0
.end method
